﻿using Hotel.Domain.Audit.Implementation;
using Hotel.Domain.Audit.Interfaces;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Hotel.Domain
{   
    /// <summary>
    /// 管理员
    /// </summary>
    public class Admin : FullAuditedEntity, IFullAuditedObject
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long AdminId { get; set; }
        /// <summary>        
        /// 用户名
        /// </summary>
        public string UserName{ get; set; }
        /// <summary>        
        /// 密码
        /// </summary>
        public string Password{ get; set; }
        /// <summary>        
        /// 邮箱
        /// </summary>
        public string Email{ get; set; }
        /// <summary>        
        /// 末次登录时间
        /// </summary>
        public DateTime? LastLoginTime{ get; set; }
        /// <summary>        
        /// 末次登录IP
        /// </summary>
        public string LastLoginIP{ get; set; }        
     }
 }